import request from '@/utils/request'

// 查询关账任务列表
export function queryClosetaskList(data) {
  return request({
    url: '/tClosetask/queryClosetaskList',
    method: 'post',
    data
  })
}
// 查询下次关账时间
export function queryNextClose(data) {
  return request({
    url: '/tClosetask/queryNextClose',
    method: 'post',
    data
  })
}
// 查询下次反关账时间
export function queryNextAnticlose(data) {
  return request({
    url: '/tClosetask/queryNextAnticlose',
    method: 'post',
    data
  })
}
// 创建关账任务
export function createClosetask(data) {
  return request({
    url: '/tClosetask/createClosetask',
    method: 'post',
    data
  })
}
// 创建关账任务-应收应付款
export function createPayRecClosetask(data) {
  return request({
    url: '/tClosetask/createPayRecClosetask',
    method: 'post',
    data
  })
}
// 创建反关账任务
export function createAntiClosetask(data) {
  return request({
    url: '/tClosetask/createAntiClosetask',
    method: 'post',
    data
  })
}
// 创建反关账任务-应收应付款
export function createAnPayRecClosetask(data) {
  return request({
    url: '/tClosetask/createAnPayRecClosetask',
    method: 'post',
    data
  })
}
// 关账任务详情
export function queryCloseTaskDetails(data) {
  return request({
    url: '/tClosetaskDetails/queryCloseTaskDetails',
    method: 'post',
    data
  })
}

// 查询结账任务列表
export function querySettletaskList(data) {
  return request({
    url: '/tTaskSettletask/querySettletaskList',
    method: 'post',
    data
  })
}
// 查询下次结账时间
export function queryNextSettle(data) {
  return request({
    url: '/tTaskSettletask/queryNextSettle',
    method: 'post',
    data
  })
}
// 查询下次反结账时间
export function queryNextAnticloses(data) {
  return request({
    url: '/tTaskSettletask/queryNextAnticlose',
    method: 'post',
    data
  })
}
// 创建结账任务
export function createSettletask(data) {
  return request({
    url: '/tTaskSettletask/createSettletask',
    method: 'post',
    data
  })
}
// 创建反结账任务
export function createAntiSettletask(data) {
  return request({
    url: '/tTaskSettletask/createAntiSettletask',
    method: 'post',
    data
  })
}
// 结账任务详情
export function querySettletaskDetail(data) {
  return request({
    url: '/tTaskSettletaskDetails/querySettletaskDetail',
    method: 'post',
    data
  })
}
// 凭证任务
// 查询凭证任务列表
export function queryVouchertaskList(data) {
  return request({
    url: '/tTaskVoucher/queryVouchertaskList',
    method: 'post',
    data
  })
}
// 查询凭证任务详情
export function queryTaskVoucherDetails(data) {
  return request({
    url: '/tTaskVoucher/queryTaskVoucherDetails',
    method: 'post',
    data
  })
}
// 查询单据类型和凭证模板
export function queryBilltypeAndMould(data) {
  return request({
    url: '/tTaskVoucher/queryBilltypeAndMould',
    method: 'post',
    data
  })
}
// 凭证任务-查询日期之前不可选
export function querySettleInfo(data) {
  return request({
    url: '/tTaskVoucher/querySettleInfo',
    method: 'post',
    data
  })
}
// 凭证过账
export function createPostingTask(data) {
  return request({
    url: '/tClosetask/createPostingTask',
    method: 'post',
    data
  })
}
// 凭证反过账
export function createAnPostingTask(data) {
  return request({
    url: '/tClosetask/createAnPostingTask',
    method: 'post',
    data
  })
}
// 凭证过账日期查询
export function queryPostingDate(data) {
  return request({
    url: '/tClosetask/queryPostingDate',
    method: 'post',
    data
  })
}
// 固定资产关账
export function createAssetCloseTask(data) {
  return request({
    url: '/tAccruedDepClosetask/createAssetCloseTask',
    method: 'post',
    data
  })
}
// 固定资产反关账
export function createAnAssetCloseTask(data) {
  return request({
    url: '/tAccruedDepClosetask/createAnAssetCloseTask',
    method: 'post',
    data
  })
}
// 固定资产关账-查询固定资产年月
export function queryAccruedCloseDepDate(data) {
  return request({
    url: '/tAccruedDepClosetask/queryAccruedCloseDepDate',
    method: 'post',
    data
  })
}
// 出纳关账-查询年月
export function queryCashierCloseDepDate(data) {
  return request({
    url: '/tAccruedDepClosetask/queryCashierCloseDepDate',
    method: 'post',
    data
  })
}
// 出纳关账
export function createCashierCloseTask(data) {
  return request({
    url: '/tAccruedDepClosetask/createCashierCloseTask',
    method: 'post',
    data
  })
}
// 出纳反关账
export function createAnCashierCloseTask(data) {
  return request({
    url: '/tAccruedDepClosetask/createAnCashierCloseTask',
    method: 'post',
    data
  })
}

